/summon villager ~ ~2 ~ {VillagerData:{profession:librarian,level:5,type:plains},Offers:{Recipes:[
{buy:{id:diamond,Count:7},buyB:{id:ender_pearl,Count:2},sell:{id:diamond_helmet,Count:1,tag:{display:{Name:"{\"text\":\"Crystal Helmet\",\"color\":\"blue\"}"},AttributeModifiers:
[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:2,Operation:0,UUIDLeast:111111,UUIDMost:111111,Slot:"head"},
{AttributeName:"generic.armor",Name:"generic.armor",Amount:3,Operation:0,UUIDLeast:111111,UUIDMost:111111,Slot:"head"}]
},maxUses:9999999}},
{buy:{id:diamond,Count:10},buyB:{id:ender_pearl,Count:4},sell:{id:diamond_chestplate,Count:1,tag:{display:{Name:"{\"text\":\"Crystal Chestplate\",\"color\":\"blue\"}"},AttributeModifiers:
[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:3,Operation:0,UUIDLeast:111112,UUIDMost:111112,Slot:"chest"},
{AttributeName:"generic.armor",Name:"generic.armor",Amount:8,Operation:0,UUIDLeast:111112,UUIDMost:111112,Slot:"chest"}]
},maxUses:9999999}},
{buy:{id:diamond,Count:9},buyB:{id:ender_pearl,Count:3},sell:{id:diamond_leggings,Count:1,tag:{display:{Name:"{\"text\":\"Crystal Leggings\",\"color\":\"blue\"}"},AttributeModifiers:
[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:3,Operation:0,UUIDLeast:111113,UUIDMost:111113,Slot:"legs"},
{AttributeName:"generic.armor",Name:"generic.armor",Amount:6,Operation:0,UUIDLeast:111113,UUIDMost:111113,Slot:"legs"}]
},maxUses:9999999}},
{buy:{id:diamond,Count:6},buyB:{id:ender_pearl,Count:1},sell:{id:diamond_boots,Count:1,tag:{display:{Name:"{\"text\":\"Crystal Boots\",\"color\":\"blue\"}"},AttributeModifiers:
[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:2,Operation:0,UUIDLeast:111114,UUIDMost:111114,Slot:"feet"},
{AttributeName:"generic.armor",Name:"generic.armor",Amount:3,Operation:0,UUIDLeast:111114,UUIDMost:111114,Slot:"feet"}]
},maxUses:9999999}}]}}